<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		*{
			margin:0;
			padding:0;
		}
		.layout{
			/*width: 1000px;*/
			height: 100px;
			background-color: pink;
		}
		.left{
			float: left;
			width:300px;
			height:100%;
			background-color: green;
		}
		.right{
			float: left;
			margin-left:300px;
			height:100%;
			background-color: yellow;
		}
	</style>
</head>
<body>
	<!-- - 左侧菜单栏占300px，右侧内容可以根据浏览器自适应。根据此要求，编写html css代码 -->
	<div class="layout">
		<div class="left"></div>
		<div class="right"></div>
	</div>
</body>
</html>
